<template>
  <div id="app">
    <!-- 组件的切换就是通过router-view实现的 -->
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {

    }
  },
  components: {
    
  },
  methods: {
    getData(val) {
      alert(val);
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
.float {
  float: left;
}
.left {
  height: 100vh;
  width: 200px;
  border-right: 2px solid #666;
}
</style>
